package com.example.sort_code;

public class TestSort {
    public static void main(String[] args) {
        IArraySort sort1 = new SelectionSort();
        IArraySort sort2 = new QuickSort();
        int[] sourceArray = {5, 2, 4, 3, 6, 7, 9, 8, 1};
        int[] sort = sort2.sort(sourceArray);
        for (int i : sort) {
            System.out.print(i);
        }

    }
}
